package com.assignwork.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 昼夜计划班次吨信息
 *
 * @author ：dujianyu
 * @since ：Created in 2024/4/23 15:51
 */
@Data
@TableName("daily_plan_shift_ton")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "DailyPlanShiftTon对象", description = "日计划班次吨数")
public class DailyPlanShiftTon extends TenantEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "昼夜计划ID")
    private Long planId;

    /** 日期 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    @ApiModelProperty(value = "日期")
    private LocalDate planDate;

    /** 班次 */
    @ApiModelProperty(value = "班次")
    private String timeSpace;

    /** 预做吨 */
    @ApiModelProperty(value = "预做吨")
    private BigDecimal preTon;

    /** 调度结吨 */
    @ApiModelProperty(value = "调度结吨")
    private BigDecimal finishTon;

}
